package com.hupu.dao;

import com.hupu.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

//使用feign
@FeignClient("user-service")
public interface FeignDao {
    @GetMapping("user/{id}")
    @ResponseBody
    User queryUserById(@PathVariable("id")Long id);

}
